//
//  MenuGroupManager.h
//  YIChuSeller
//
//  Created by 田小椿 on 2018/12/24.
//  Copyright © 2018年 xiangshengjun. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MenuContentManager : NSObject
/**
查询店铺所有分组
storeId:商铺id
success:成功
fail:失败
*/
+ (void)selectMenuGroupWithStoreID:(NSString*)storeId
                           success:(CompleteHandle)success
                              fail:(CompleteHandle)fail;

/**
 添加分组
 storeId:商铺id
 name:分组名
 success:成功
 fail:失败
 */
+ (void)addMenuGroupWithStoreID:(NSString*)storeId groupName:(NSString *)name
                        success:(CompleteHandle)success
                           fail:(CompleteHandle)fail;
/**
 删除分组
 dishesId:分组id
 success:成功
 fail:失败
 */
+ (void)deleteMenuGroupWithSdishesId:(NSString *)dishesId
                             success:(CompleteHandle)success
                                fail:(CompleteHandle)fail;
/**
 移动分组
 storeId:商铺id
 dishesgropS:移动后的分组
 success:成功
 fail:失败
 */

+ (void)moveMenuGroupWithStoreId:(NSString *)storeId dishesgropS:(NSArray *)changeArray
                         success:(CompleteHandle)success
                            fail:(CompleteHandle)fail;

/**
 更改分组名
 dishesId:分组id
 name:分组名
 success:成功
 fail:失败
 */
+ (void)changeMenuGroupNameWithSdishesId:(NSString *)dishesId groupName:(NSString *)name
                             success:(CompleteHandle)success
                                fail:(CompleteHandle)fail;


/**
查询所有商品列表
 storeId:商铺id
 success:成功
 fail:失败
 */
+ (void)selectMenuListWithStoreID:(NSString*)storeId
                          success:(CompleteHandle)success
                             fail:(CompleteHandle)fail;
/**
 添加商品
 storeId:商铺id
 dishesImage:商品实景图上传成功后的地址
 describer:商品描述
 name:名字
 dishesId:分组id
 price:商品价格
 discountPrice:商品折扣价
 success:成功
 fail:失败
 */
+ (void)addDishWithStoreID:(NSString*)storeId  dishesName:(NSString *)name  dishesImage:(NSString *)imageStr describerStr:(NSString *)describer dishesId:(NSString *)dishesId priceStr:(NSString *)price discountPrice:(NSString *)discountPrice success:(CompleteHandle)success  fail:(CompleteHandle)fail;
/**
 查询单个商品信息
 serviceId:查询的菜品id
 success:成功
 fail:失败
 */
+ (void)selectSingleDishWithServiceId:(NSString*)serviceId  success:(CompleteHandle)success  fail:(CompleteHandle)fail;
/**
 修改商品
 serviceId:商品id
 dishesImage:商品实景图上传成功后的地址
 describer:商品描述
 name:商品名
 dishesId:分组id
 price:商品价格
 discountPrice:商品折扣价
 success:成功
 fail:失败
 */
+ (void)changeDishWithServiceId:(NSString*)serviceId  dishesName:(NSString *)name  dishesImage:(NSString *)imageStr describerStr:(NSString *)describer dishesId:(NSString *)dishesId priceStr:(NSString *)price discountPrice:(NSString *)discountPrice success:(CompleteHandle)success  fail:(CompleteHandle)fail;

/**
 查询特色菜品、轮播图、商铺特色
 storeId:商铺id
 sige:添加特色类型
 success:成功
 fail:失败
 */
+ (void)selectFeatureFuctionWithStoreId:(NSString*)storeId  sige:(NSString*)sige  success:(CompleteHandle)success  fail:(CompleteHandle)fail;
/**
 查询所有的特色菜品、轮播图、商铺特色数据
 storeId:商铺id
 success:成功
 fail:失败
 */
+ (void)selectAllFeatureDataSourceWithStoreId:(NSString*)storeId  success:(CompleteHandle)success  fail:(CompleteHandle)fail;
/**
 添加特色菜品、轮播图、商铺特色
 ServiceId:商品id
 sige:添加特色类型
 success:成功
 fail:失败
 */
+ (void)addFeatureFuctionWithServiceId:(NSString*)serviceId  sige:(NSString*)sige  success:(CompleteHandle)success  fail:(CompleteHandle)fail;

@end

NS_ASSUME_NONNULL_END
